package com.iven.xie.designpattern.command;

/**
 * Order 接口的实体类
 *
 * @author xiezhendong
 * @date 2021/8/3
 */
public class SellStock implements Order {
    private Stock abcStock;

    public SellStock(Stock abcStock) {
        this.abcStock = abcStock;
    }

    @Override
    public void execute() {
        abcStock.sell();
    }
}
